//
//  NYFollowTagCell.m
//  百思不得姐
//
//  Created by Apple on 15/9/1.
//  Copyright (c) 2015年 Neal. All rights reserved.
//

#import "NYFollowTagCell.h"
#import "NYFollowUser.h"
#import <UIImageView+WebCache.h>

@interface NYFollowTagCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *name_label;
@property (weak, nonatomic) IBOutlet UILabel *count_label;

@end
@implementation NYFollowTagCell

- (void)awakeFromNib {
    self.backgroundColor = NYGlobalBg;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setUser:(NYFollowUser *)user
{
    _user = user;
    self.name_label.text = user.screen_name;
    self.count_label.text = user.fans_count;
    [self.iconImageView setHeaderImageWithUrl:user.header];
}
@end
